package com.ldzy.pojo;

public class Bean3 {
    private String name;
    private  Bean2 bean2;

    public Bean3() {
        System.out.println("我是构造方法实例化");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Bean2 getBean2() {
        return bean2;
    }

    public void setBean2(Bean2 bean2) {
        this.bean2 = bean2;
    }

    @Override
    public String toString() {
        return "Bean3{" +
                "name='" + name + '\'' +
                ", bean2=" + bean2 +
                '}';
    }
}
